/**
 * jims
 */
package com.jims.master.modules.doctor.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 出院通知Entity
 * @author 陈晓阳
 * @version 2017-04-05
 */
public class PreDischgedPats extends DataEntity<PreDischgedPats> {
	
	private static final long serialVersionUID = 1L;
	private String patientId;		// 病人Id
	private String visitId;		// 住院Id
	private String ordersId;		// 医嘱表主键
	private String dischargeMethod;		// 出院方式
	private Date preDischargeDate;		// 预出院时间
    //
    private String bedNo;
    private Date admissionDate;
    private String name;
    private String sex;
    private String wardCode;

	public PreDischgedPats() {
		super();
	}

	public PreDischgedPats(String id){
		super(id);
	}

	@Length(min=1, max=64, message="病人Id长度必须介于 1 和 64 之间")
	public String getPatientId() {
		return patientId;
	}

	public void setPatientId(String patientId) {
		this.patientId = patientId;
	}
	
	@Length(min=1, max=64, message="住院Id长度必须介于 1 和 64 之间")
	public String getVisitId() {
		return visitId;
	}

	public void setVisitId(String visitId) {
		this.visitId = visitId;
	}
	
	@Length(min=1, max=64, message="医嘱表主键长度必须介于 1 和 64 之间")
	public String getOrdersId() {
		return ordersId;
	}

	public void setOrdersId(String ordersId) {
		this.ordersId = ordersId;
	}
	
	@Length(min=1, max=64, message="出院方式长度必须介于 1 和 64 之间")
	public String getDischargeMethod() {
		return dischargeMethod;
	}

	public void setDischargeMethod(String dischargeMethod) {
		this.dischargeMethod = dischargeMethod;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="预出院时间不能为空")
	public Date getPreDischargeDate() {
		return preDischargeDate;
	}

	public void setPreDischargeDate(Date preDischargeDate) {
		this.preDischargeDate = preDischargeDate;
	}

    public String getBedNo() {
        return bedNo;
    }

    public void setBedNo(String bedNo) {
        this.bedNo = bedNo;
    }

    public Date getAdmissionDate() {
        return admissionDate;
    }

    public void setAdmissionDate(Date admissionDate) {
        this.admissionDate = admissionDate;
    }

    public String getName() {
        return name;
    }

    public String getWardCode() {
        return wardCode;
    }

    public void setWardCode(String wardCode) {
        this.wardCode = wardCode;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

}